package com.cesgroup.zw.spring.boot.library.echarts.lineAndBar.complex;


import com.cesgroup.zw.spring.boot.charts.model.IChartsParam;
import com.cesgroup.zw.spring.boot.charts.model.IComponent;
import lombok.Builder;
import lombok.Data;

import java.util.Map;


/**
 * @author ytj
 * @date 2019/7/4 13:07
 */
@Builder
@Data
@SuppressWarnings("serial")
public class ComplexLineAndBarParam  implements IChartsParam<IComponent,Map<Object,Object>> {
    private Map<Object,Object> dataset;

    private String title;

    private String left;

    private String lineName;

    private String barName;

    @Override
    public IComponent[] getSeries() {
        return new IComponent[]{new ComplexLineSeries(this),new ComplexBarSeries(this)};
    }
}
